import Vue from 'vue'
import vueRouter from 'vue-router'

import login from '@/pages/login/login'
import register from '@/pages/register/register'
import home from '@/pages/home/home'
import chat from "@/pages/chat/chat"

Vue.use(vueRouter)

export default new vueRouter({
  routes:[
    {name:'home',path:'/',component:home},
    {name:'register',path:'/register',component:register},
    {name:'login',path:'/login',component:login},
    {name:'chat',path:'/chat',component:chat}
  ]
}) 